﻿using System.ComponentModel.DataAnnotations;

namespace WebMvc.Models
{
    public class LoginModel
    {
        [Required(ErrorMessage = "登录ID不能为空。")]
        public string LoginId { get; set; }

        [Required(ErrorMessage = "密码不能为空。")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        public bool RememberMe { get; set; }
    }

}
